home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-19 | 2.3 KB | 64 lines | [TEXT/MMCC] |
- Sprite Sample Code - Sean Allen
-
- The sprite sample code consists of three examples which show
- how the sprite toolbox may be used to do sprite animation,
- how to create a QuickTime Movie containing a Sprite Track, and how
- to add a reference track a movie which is used to override sprite image
- data. Also useful is code which recompresses PICT images as animation
- compressor sequences.
-
- A resource file is included which contains the PICT's neccessary to create
- the sample movies and animations.
-
- The space ship and background images were created by Mark Allen using
- Form Z to create the models, and Electric Image to render them.
-
- /*
- SpriteToolBoxSampleCode.c
-
- This sample code shows how the sprite toolbox may be used by an
- application to create a simple sprite animation (one which is
- not contained in a QuickTime movie ).
-
- */
-
- /*
- MakeSpriteMovie.c
-
- This sample code shows how to create a QuickTime Sprite Track
- The example creates a 640 x 480 movie with one sprite track. The
- sprite track contains a static background picture sprite, or just
- a color background depending on the boolean passed into AddSpriteTrackToMovie,
- and three other sprites which change their properties over time.
- The track's media contains only one key frame sample followed by
- many override samples. The key frame contains all of the images
- used by the sprites, the override frames only contain the
- overrides of the locations, image indecies, and layers needed for the other
- sprites.
-
- Since each override frame is small the performance of the movie
- can be improved by flattening it. (save as self contained from
- Movie Player).
-
- This sample code also shows how any PICT can be recompressed with the
- animation compressor using a key color to obtain transparency.
- */
-
- /*
- AddReferenceTrack.c
-
- This sample code shows how a movie can be modified to use a reference track
- as the image data for an image index in a sprite track.
-
- It prompts for a movie which should contain a single sprite track, and then
- add's a movie named "Add Me" as a reference track. The reference track
- will override the image data for a selected image index.
-
- You may use the movie created with the MakeSpriteMovie sample code. The
- globe image index will be replaces by the "Add Me" movie.
-
- Note that the movie with the sprite track is permanently modified, so use
- a copy if you want to retain the original.
- */
-
-